<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String a = request.getParameter("a");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/jqueryslidemenu.css" />
<link href="css/screen.css" rel="stylesheet" type="text/css" media="screen" />	

<link href="css/login.css" rel='stylesheet' type='text/css' />
<script src="js/jquery.min.js"></script>
<link href="css/popuo-box.css" rel="stylesheet" type="text/css" media="all" />

</head>
<body
	<c:if test='<%=a.equals("login")%>'>
	onload="document.getElementById('loginBut').click();"
	</c:if>
>
  	<div id="wrapper">
	    <div id="topbar">
	      <div id="logo"><img src="images/logo.gif" alt="" width="319" height="75" /></div>
	    </div>
    </div>
    <div id="content" style="background: url('images/bg.jpg')">
   		<!-- login/regist begin -->
	    <div class="dialog" align="center">
			<div class="wrap">
  <div class="top-one">
    <div class="login-one">
      <div class="create-account">
        <div class="login-head">
          <span style="font-size:30px;color:#ffd800;">注册</span>
          <span class="line"> <span class="sub-line"></span> </span> </div>
        <form action="regist.do" method="post">
          <p align="left">用户名
            <lable> *</lable>
          </p>
          <input type="text" class="text" name="customerEntity.customerName" />
          <p align="left">密码
            <lable> *</lable>
          </p>
          <input type="password" class="text" name="customerEntity.customerPass"/>
          <p align="left">手机号码
            <lable> *</lable>
          </p>
          <input type="text" class="text" name="customerEntity.customerPhone"/>
          <p align="left">邮箱
            <lable> *</lable>
          </p>
          <input type="text" value="" name="customerEntity.customerEmail"/>
          <div class="sign-up">
            <input type="submit" value="注册" />
            </div>
            </form>
            <div class="sign-up">
            <script src="js/jquery.magnific-popup.js" type="text/javascript"></script>
            <!-- login start  -->
            <div id="small-dialog2" class="mfp-hide">
	              <div class="signup"> 
	              <form action="login.do" method="post" name="login">
	              <span style="font-size:30px;">登录</span>
	                <p>用户名</p>
	                <input type="text" name="customerEntity.customerName" placeholder="your name" class="email"/>
	                <p>密码</p>
	                <input type="password" name="customerEntity.customerPass" placeholder="Password" />
	                <div class="p-container">
	                  <!-- 验证码 -->
	                </div>
	                <input type="submit" value="登录"/>
	                </form>
	              </div>
            </div>
             
            <!-- login end  -->
            <div align="left"> 
              <script>
						$(document).ready(function() {
						$('.popup-with-zoom-anim').magnificPopup({
							type: 'inline',
							fixedContentPos: false,
							fixedBgPos: true,
							overflowY: 'auto',
							closeBtnInside: true,
							preloader: false,
							midClick: true,
							removalDelay: 300,
							mainClass: 'my-mfp-zoom-in'
						});
																						
						});
				</script> 
            </div>
          </div>
        <div class="clear"> </div>
        <h5>已有账号? <a id="loginBut" class="signup play-icon popup-with-zoom-anim" href="#small-dialog2">点击这里登录</a></h5>
      </div>
    </div>
  </div>

		</div>
		<!-- login/regist end -->
    </div>
    <div id="footer">Copyright &copy; com.kun 593921602.</div>
	<s:debug></s:debug>
</body>
</html>

